package com.lxl.servlet;

import com.lxl.core.TaskExecutor;
import com.lxl.core.LongJob;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(asyncSupported = true)
public class LongJobServlet extends BaseLongServlet {

    @Override
    protected TaskExecutor getTask(HttpServletRequest request, HttpServletResponse response) {
        return new LongJob(request, response);
    }
}